<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="UTF-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">

        <script type="text/javascript">

            function Person(name, age, gender){
                this.name = name;
                this.age = age;
                this. gender = gender;
            }
            Person.prototype.toString = function(){
                return "Person[name:"+this.name+",age:"+this.age+",gender:"+this.gender+"]";
            };

            var obj1 = new Person("阿虎", 18, "男生");
            var obj2 = new Person("阿花", 16, "女生");
            
            console.log(obj1.__proto__.toString());

        </script>

        <style type="text/css">

        </style>
    </head>
    <body>
        
    </body>
</html>